package com.itheima.service.impl;


import com.itheima.dao.AccountDao;
import com.itheima.pojo.Account;
import com.itheima.service.AccountService;
import org.apache.ibatis.session.SqlSessionFactory;

public class AccountServiceImpl implements AccountService {

    private AccountDao accountDao;

    public void setAccountDao(AccountDao accountDao) {
        this.accountDao = accountDao;
    }

    public Account findById(Integer id) {

        return accountDao.findById(id);
    }

    public void save(Account account) {

        accountDao.save(account);
    }
}
